__author__ = 'daihaibin'

class GlobalSettingsMiddleware(object):

    def __init__(self):
        self.global_settings = ({
            'STATIC_RESOURCES_URL':'http://127.0.0.1:8000/static/'
        })

    def process_request(self, request):
        request.KJSSOFT_GLOBAL_SETTINGS = self.global_settings
